package tech.aistar.corejava.day17;

/**
 * Created by 豆梦寒 on 2019/8/6.
 */
public class TestGender {
    public static void main(String[] args) {
        Gender f = Gender.F;

        System.out.println(f.getSign());
        System.out.println(f);

        //获取枚举常量中所有的枚举值

        Gender[] genders = Gender.values();

        for (Gender gender:genders) {
            System.out.println(gender);
        }
    }

}
